package com.atchangsha.system.constant;


import com.atchangsha.system.common.exception.EnumInterface;

public class PayConstants {
    public enum PayEnum implements EnumInterface{
        ADD_FAIL(-2101,"往MQ中存入消息失败"),
        RECEIVE_FAIL(-2102,"接收MQ中消息失败"),
        UPDATE_TABLE_FAIL(-2103,"更新餐桌信息失败"),
        UPDATE_WORKER_FAIL(-2104,"更新员工信息失败"),
        UPDATE_MEMBER_FAIL(-2105,"更新会员信息失败"),
        UPDATE_ORDER_FAIL(-2106,"更新订单信息失败"),
        ADD_BILL_FAIL(-2107,"添加消费账单信息失败"),
        CASH_MONEY_SUCCESS(2108,"现金支付成功"),
        NOT_ORDER(-2109,"暂无订单"),
        CONSUMPTION_SUCCESS(2110,"支付宝支付成功"),
        DELETE_FAIL(-2111,"删除消息队列失败"),
        PAYING(2112,"正在支付"),
        CANCEL_PAYMENT(2113,"顾客取消支付"),
        PAY_SUCCESS(2114,"支付宝支付成功"),
        ;
        private int code;
        private String message;

        PayEnum(int code, String message) {
            this.code = code;
            this.message = message;
        }


        @Override
        public int getCode() {
            return code;
        }

        @Override
        public String getMsg() {
            return message;
        }
    }
}
